<?php
if (!defined ('TYPO3_MODE')) {
	die('Access denied.');
}

// Hooks to tt_news
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['tt_news']['what_to_display'][$_EXTKEY] = array('MOST_POPULAR', 'MOST_POPULAR', null);
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['tt_news']['selectConfHook'][$_EXTKEY] = 'EXT:nc_ttnews_mostpopular/class.tx_ncttnewsmostpopular_hooks.php:&tx_ncttnewsmostpopular_hooks';
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['tt_news']['extraCodesHook'][$_EXTKEY] = 'EXT:nc_ttnews_mostpopular/class.tx_ncttnewsmostpopular_hooks.php:&tx_ncttnewsmostpopular_hooks';
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['tt_news']['extraItemMarkerHook'][$_EXTKEY] = 'EXT:nc_ttnews_mostpopular/class.tx_ncttnewsmostpopular_hooks.php:&tx_ncttnewsmostpopular_hooks';

// Hook to TSFE to increase news read counter
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['contentPostProc-output']['tx_ncttnewsmostpopular'] = 'EXT:nc_ttnews_mostpopular/class.tx_ncttnewsmostpopular_hooks.php:&tx_ncttnewsmostpopular_hooks->contentPostProcOutput';
?>